package com.polaris.live.utils.livehelper

import im.zego.zegoexpress.constants.ZegoPlayerState
import im.zego.zegoexpress.constants.ZegoRemoteDeviceState
import im.zego.zegoexpress.entity.ZegoPlayStreamQuality
import org.json.JSONObject

/**
 * LiveListener 监听
 * @author Created by 天晴 on 2024/1/3 10:45

 * @since 1.0.0

 **/
interface LiveListener {

    fun start()

    fun stop()



    fun onPlayerStateUpdate(
        state: ZegoPlayerState?,
        errorCode: Int,
        extendedData: JSONObject?
    )
    /**
     * 远端状态
     */
    fun onRemoteSpeakerStateUpdate(state: ZegoRemoteDeviceState)
    /**
     * 拉流Quality
     */
    fun onPlayerQualityUpdate(quality: ZegoPlayStreamQuality)


}